<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
	.high
	{
		font-weight:bold;
		color:red;
	}
	.another
	{
		font-style:italic;
		color:blue;
	}
</style>
<script src="../../scripts/jquery-1.3.1.js"></script>
<script type="text/javascript">
	$(function () {
		//1、获取p标签的class
	$("P").attr("class")
	  //2、将p标签的class属性改成class+another
	$("p").attr("class","another")

		//3、点击link交替两种样式
	
	})
</script>
</head>

<body>
	<h3>例子</h3>
	<p title="选择你最喜欢的水果" class="high" id="link">选择你最喜欢的水果</p>
	<ul id="uu">
		<li>苹果</li>
		<li>橘子</li>
		<li>菠萝</li>
	</ul>
</body>
</html>
